'Declaration
Public Overloads Shared Function GetImage( _ ByVal assembly As Assembly, _ ByVal resourcePath As String, _ ByVal requestScaleFactor As Single, _ ByVal scaleFactors() As Single _ ) As Image
'Usage
Dim assembly As Assembly Dim resourcePath As String Dim requestScaleFactor As Single Dim scaleFactors() As Single Dim value As Image value = DPIUtils.GetImage(assembly, resourcePath, requestScaleFactor, scaleFactors)
public static Image GetImage( Assembly assembly, string resourcePath, float requestScaleFactor, float[] scaleFactors )
Parameters
- assembly
- The assembly that contain the specified Image resource. If the assembly is null, that mean the specified Image resource is file.
- resourcePath
- The original path (1x version) of specifed Image resource.
- requestScaleFactor
- The scale factor of the result Image.
- scaleFactors
- The scale factors of the specified scale versions of the Image resource that would be used to create the result Image.
Return Value
The scaled Image.